#ifndef __BOTTOM_HALF_H__
#define __BOTTOM_HALF_H__

#include "linux/preempt.h"
#include "asm/barrier.h"

static void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
{
	preempt_count_add(cnt);
	barrier();
}

static inline void local_bh_disable(void)
{
}

extern void _local_bh_enable(void);
extern void __local_bh_enable_ip(unsigned long ip, unsigned int cnt);

static inline void local_bh_enable_ip(unsigned long ip)
{
}

static inline void local_bh_enable(void)
{
}

#endif